package com.ruoyi.device.service;

import com.ruoyi.device.domain.HatDevice;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.device.domain.req.hatdevice.HatDeviceAddReq;
import com.ruoyi.device.domain.req.hatdevice.HatDeviceEditReq;
import com.ruoyi.device.domain.req.hatdevice.HatDeviceReq;
import com.ruoyi.device.domain.resp.hatdevice.HatDeviceByIdResp;
import com.ruoyi.device.domain.resp.hatdevice.HatDeviceResp;
import com.ruoyi.device.domain.resp.hatdevice.HatDeviceSearchResp;

import java.util.List;

/**
* @author 11452
* @description 针对表【hat_device】的数据库操作Service
* @createDate 2023-11-24 17:14:58
*/
public interface HatDeviceService extends IService<HatDevice> {

    /**
     * 根据区域编号获取所有的设备信息
     * @param orgCode
     * @return
     */
    List<HatDeviceResp>  searchByOrgCode(String orgCode);

    /**
     * 分页查询安全帽视图
     * @param req
     * @return
     */
    List<HatDeviceSearchResp> search(HatDeviceReq req);

    List<HatDeviceResp> searchUnBind();

    Boolean add(HatDeviceAddReq req);

    Boolean edit(HatDeviceEditReq req);

    HatDeviceByIdResp findByid(Long id);

    boolean updateDel(Long[] id);



}
